/**
 * 
 */
package com.lehecai.core.lottery;

import com.lehecai.core.IntegerBeanLabelItem;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * 提款记录渠道
 * @author He Wang
 */
public class RemitChannel extends IntegerBeanLabelItem {

	private static final long serialVersionUID = 1255798921656386140L;

	private static final Logger logger = LoggerFactory.getLogger(RemitChannel.class.getName());

	private static List<RemitChannel> items = new ArrayList<RemitChannel>();

	protected RemitChannel(String name, int value) {
		super(RemitChannel.class.getName(), name, value);
		items.add(this);
	}
	
	public static RemitChannel getItem(int value){
		try {
			return (RemitChannel) RemitChannel.getResult(RemitChannel.class.getName(), value);
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
			return null;
		}
	}
	
	public static List<RemitChannel> getItems() {
		return items;
	}

	public static final RemitChannel ALL = new RemitChannel("全部", -1);

	public static final RemitChannel DEFAULT = new RemitChannel("默认", 0);
	public static final RemitChannel ALIPAY = new RemitChannel("支付宝提款", 1);
	public static final RemitChannel BAIDUPAY = new RemitChannel("百度钱包提款", 2);
	public static final RemitChannel CHINABANKPAY = new RemitChannel("网银在线提款", 3);

	public static final RemitChannel ALIPAY_REFUND = new RemitChannel("支付宝退款", 4);
	public static final RemitChannel ALIPAY_BANK_REFUND = new RemitChannel("支付宝网关退款", 5);
    public static final RemitChannel ALIPAY_WAP_REFUND = new RemitChannel("支付宝WAP退款", 6);

    public static final RemitChannel BAIDUPAY_REFUND = new RemitChannel("百度钱包退款", 1101);
    public static final RemitChannel BAIDUPAY_FASTER_REFUND = new RemitChannel("百度钱包快捷支付退款", 1102);
    public static final RemitChannel BAIDUPAY_EVENT_REFUND = new RemitChannel("百度钱包活动充值退款", 1103);
    public static final RemitChannel BAIDUPAY_EVENT_NF_REFUND = new RemitChannel("百度钱包活动（非首次）充值退款", 1104);
    public static final RemitChannel BAIDUPAY_WIRELESS_REFUND = new RemitChannel("百度钱包无线退款", 1105);

    public static final RemitChannel YEEPAY_BANK_REFUND = new RemitChannel("易宝网银退款", 1201);

    public static final RemitChannel SHENGPAY_BANK_REFUND = new RemitChannel("盛付通网银退款", 1301);

    public static final RemitChannel ECOPAY_REFUND = new RemitChannel("银联语音退款", 1401);

    public static final RemitChannel CHINABANKPAY_REFUND = new RemitChannel("网银在线退款", 1501);
}
